package flyweight;

import flyweight.factory.MessageFactory;

public class Main {
    public static void main(String[] args) {
//        Message phoneMessage = new PhoneMessage();
        for (int i = 0; i < 10; i++) {
            System.out.println("发送短信-》"+MessageFactory.getMessage("phone").template("朋友"+i));
        }
    }
}
